<? 
abstract class secured_admin_action extends inabuurt_controller_action{

	protected $user;

	protected function init(){
		
		if(!$this -> user -> validateSession()){
		
			$this -> redirect('/');
			die();
		
		}elseif($this -> user -> type != 0){
			$this -> redirect('/');
			die();
			
		}else{
		
			$this -> user -> fill();
			
		
		}
		
		$this -> initController();
	
	}
	
	
	protected function initController(){
	
		
			
	}
	
	
	
	
	
	
	
	

	

}



?>